package com.swt.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.swt.test.dao.Student;

public class Main {
    public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
	   Student stu=(Student) context.getBean("stu");
	   System.out.println(stu);
	   Student stu1=(Student) context.getBean("stu1");
	   System.out.println(stu1);
    }
}
